<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>

<s:layout-render name="/frontend/layout.jsp" title="frontend.hotelsList.title">
    <s:layout-component name="body">
        <s:useActionBean beanclass="cz.muni.fi.pa165.bookingmanager.web.FrontEndActionBean" var="actionBean"/>
        <div class="content_right_section">        	
            <div class="content_title_01"><f:message key="frontend.hotelsList.title" /></div>  
            
            <c:forEach var="hotel" items="${actionBean.getListHotels()}" >
                <h2>${hotel.name}</h2>
                <h3>${hotel.adress}, ${hotel.city}</h3>
                <p>${hotel.description}</p>
                <div class="rc_btn_02" style="float:right"><s:link beanclass="cz.muni.fi.pa165.bookingmanager.web.FrontEndActionBean" event="hotelDetail"><s:param name="hotel.id" value="${hotel.id}" /><f:message key="frontend.global.detail" /></s:link></div>          
                <div class="cleaner_h20">&nbsp;</div>
                <hr />
            </c:forEach>            
       	</div>
        <div class="cleaner_h40">&nbsp;</div>
        
        
    </s:layout-component>
</s:layout-render>

